package cn.dac.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 *
 CREATE TABLE `role` (
 `id` INT(11) NOT NULL AUTO_INCREMENT,
 `name` VARCHAR(10) NOT NULL,
 `descr` VARCHAR(100) NULL DEFAULT NULL,
 PRIMARY KEY (`id`)
 )
 COLLATE='utf8_general_ci'
 ENGINE=InnoDB
 ;
 *
 */


@Entity
public class Role implements Serializable {
    private static final long serialVersionUID = -3489235613479821570L;

    @Id
    @GeneratedValue
    private Integer id;

    @Column
    private String name;

    @Column
    private String descr;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
